// app.ts

App<IAppOption>({
  globalData: {
    exerciseArea:[],//锻炼部位信息
    templateTempData:[], //模板临时存储信息
    safeAreaBottom:0
  },
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)

    this.globalData = {
      exerciseArea:[],
      templateTempData:[],
      safeAreaBottom:0
    }

    wx.getSystemInfo({
      success: (res) => {
        if (res.safeArea) {
          const safeAreaBottom = res.screenHeight - res.safeArea.bottom;
          this.globalData.safeAreaBottom = safeAreaBottom;
        }
      }
    })



  },
})